package tree;

public class BinaryTreeNode<E>{
    BinaryTreeNode<E> left;
    BinaryTreeNode<E> right;
    BinaryTreeNode(){
        left=null;
        right=null;
    }

    public BinaryTreeNode<E> getRight() {
        return right;
    }

    public BinaryTreeNode<E> setRight(BinaryTreeNode<E> right) {
        return this.right = right;
    }

    public BinaryTreeNode<E> getLeft() {
        return left;
    }

    public BinaryTreeNode<E> setLeft(BinaryTreeNode<E> left) {
        return this.left = left;
    }
}
